/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "产品管理",TableName = "Product")]
    public partial class Product:BaseEntity
    {
        /// <summary>
       ///产品编号
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="产品编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ProductId { get; set; }

       /// <summary>
       ///产品名称
       /// </summary>
       [Display(Name ="产品名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string ProductName { get; set; }

       /// <summary>
       ///厂商编码
       /// </summary>
       [Display(Name ="厂商编码")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string SupplierId { get; set; }

       /// <summary>
       ///内部编码
       /// </summary>
       [Display(Name ="内部编码")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string InsideId { get; set; }

       /// <summary>
       ///单位
       /// </summary>
       [Display(Name ="单位")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string UnitId { get; set; }

       /// <summary>
       ///类别
       /// </summary>
       [Display(Name ="类别")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string SortId { get; set; }

       /// <summary>
       ///预警（下）
       /// </summary>
       [Display(Name ="预警（下）")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string EarlyWarningFront { get; set; }

       /// <summary>
       ///预警（上）
       /// </summary>
       [Display(Name ="预警（上）")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string EarlyWarningBelow { get; set; }

       /// <summary>
       ///规格
       /// </summary>
       [Display(Name ="规格")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Specification { get; set; }

       /// <summary>
       ///价格
       /// </summary>
       [Display(Name ="价格")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? Price { get; set; }

       /// <summary>
       ///重量
       /// </summary>
       [Display(Name ="重量")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Weight { get; set; }

       /// <summary>
       ///默认仓库
       /// </summary>
       [Display(Name ="默认仓库")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string DefaultRepository { get; set; }

       /// <summary>
       ///默认库位
       /// </summary>
       [Display(Name ="默认库位")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string DefaultLibraryLocation { get; set; }

       /// <summary>
       ///默认供应商
       /// </summary>
       [Display(Name ="默认供应商")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string DefaultSupplier { get; set; }

       /// <summary>
       ///默认客户
       /// </summary>
       [Display(Name ="默认客户")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string DefaultCustomer { get; set; }

       /// <summary>
       ///描述
       /// </summary>
       [Display(Name ="描述")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Describe { get; set; }

       /// <summary>
       ///期初库存
       /// </summary>
       [Display(Name ="期初库存")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int StartStock { get; set; }

       /// <summary>
       ///入库数量
       /// </summary>
       [Display(Name ="入库数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? StockIn { get; set; }

       /// <summary>
       ///出库数量
       /// </summary>
       [Display(Name ="出库数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? StockOut { get; set; }

       /// <summary>
       ///总库存
       /// </summary>
       [Display(Name ="总库存")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? SumStock { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="IsDeleted")]
       [Column(TypeName="sbyte")]
       [Editable(true)]
       public sbyte? IsDeleted { get; set; }

       
    }
}